home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
adlibn
/
dbtestvi.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1998-12-23
|
3KB
|
105 lines
// DBTestView.cpp : implementation of the CDBTestView class
//
#include "stdafx.h"
#include "DBTest.h"
#include "DBTestDoc.h"
#include "DBTestView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDBTestView
IMPLEMENT_DYNCREATE(CDBTestView, CView)
BEGIN_MESSAGE_MAP(CDBTestView, CView)
//{{AFX_MSG_MAP(CDBTestView)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDBTestView construction/destruction
CDBTestView::CDBTestView()
{
// TODO: add construction code here
}
CDBTestView::~CDBTestView()
{
}
BOOL CDBTestView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CDBTestView drawing
void CDBTestView::OnDraw(CDC* pDC)
{
CDBTestDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CDBTestView printing
BOOL CDBTestView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CDBTestView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CDBTestView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CDBTestView diagnostics
#ifdef _DEBUG
void CDBTestView::AssertValid() const
{
CView::AssertValid();
}
void CDBTestView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CDBTestDoc* CDBTestView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDBTestDoc)));
return (CDBTestDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CDBTestView message handlers